GetMatrix
TheGetMatrix
method copies this transform's matrix into the specified structure.
void GetMatrix (out ODMatrix matrix);
matrix
- The structure in which to return the matrix.
DISCUSSION
If you use transforms of the classODTransform
and you have also created a subclass ofODTransform
that applies complex transformation effects that cannot be represented by matrices, your part needs to check whether a given transform has a matrix before calling this method. To do so, you should call the transform'sHasMatrix
method; only if that method returns true should you call the transform'sGetMatrix
method.OVERRIDING
If you subclassODTransform
to create a nonlinear transform class, you must override this method. Your override method must not call its inherited method. Instead, it should raise akODErrTransformErr
exception. You can detect that a transform of your class has no matrix by calling itsHasMatrix
method.EXCEPTION
kODErrTransformErr
- This transform object does not use a matrix.
SEE ALSO
TheODMatrix
type (page 888).
TheODTransform::HasMatrix
method (page 772).
TheODTransform::SetMatrix
method (page 783).
"Custom Transform Objects" on page 450 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help